# Temporary, simple, makefile

CC = cc
SDLFLAGS = -lSDL -lSDL_image
CFLAGS = -Wall -O2 $(SDLFLAGS) -lGame
#EXECS = DynamicArrayTest StringTest  -- Sort out DynamicArrayTest.c before adding this back in
EXECS = StringTest Widget ContainerTest

all : $(EXECS)

DynamicArrayTest : 
	#$(CC) $(CFLAGS) DynamicArrayTest.c -o DynamicArrayTest

StringTest: StringTest.c
	$(CC) $(CFLAGS) StringTest.c -o StringTest

WIdget: Widget.c ../Widgets.c ../Widgets.h
	$(CC) $(CFLAGS) Widget.c -o Widget

ContainerTest: ContainerTest.c
	$(CC) $(CFLAGS) ContainerTest.c -o ContainerTest

clean :
	$(RM) $(OBJS) $(EXECS)

realclean : clean
	$(RM) *~
